#include<iostream>
using namespace std;
int main() {
	int n1 = 0;
	int n2 = 0;
	int n3 = 0;
	cout << "请分别输入三只小猪的重量：" << endl;
	cout << "a小猪的体重为："  << endl;
	cin >> n1;
	cout << "b小猪的体重为："  << endl;
	cin >> n2;
	cout << "c的体重为：" << endl;
	cin >> n3;
	cout << "a小猪的体重为：" << n1 << endl;
	cout << "b的体重为：" << n2 << endl;
	cout << "c的体重为：" << n3 << endl;
	if (n1 > n2) {  
        if (n1> n3) {
            cout << "a小猪最重" << endl;
            }
		else { 
            cout << "c小猪最重" << endl; 
            }
            }
	else {
		if (n2 > n3) {
			cout << "b小猪最重" << endl;
		}
		else { cout << "c小猪最重" << endl; }
		}
	

	return 0;
}

